﻿using DataServer.ApplicationLib.Entities;
using Swimj.Core.DependencyInjection;
using Swimj.DataCore;

namespace DataServer.ApplicationLib.Repositories
{
    public interface IConfigDataRepository : IScopedDependency
    {
        Task<Tuple<IEnumerable<ConfigDataEntity>, int>> QueryFilterByPageAsync(ConditionCollection conditions,
            int pageIndex, int pageSize);

        Task BatchInsertAsync(IEnumerable<ConfigDataEntity> configDataEntities);

        Task<IEnumerable<ConfigDataEntity>> QueryFilterAsync(ConditionCollection conditions);
    }
}